package com.example.demo.decorator.version01;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author keyer
 * Created by cyd on 2021-05-24 21:48:44
 */
@Data
@AllArgsConstructor
public class Person {
    private String name;

    public void wearTShirts() {
        System.out.print("穿T-shirt ");
    }

    public void wearBigTrouser() {
        System.out.print("穿大垮裤 ");
    }

    public void wearSneakers() {
        System.out.print("穿破球鞋 ");
    }

    public void wearSuit() {
        System.out.print("穿西装 ");
    }


    public void wearLeatherShoes() {
        System.out.print("穿皮鞋 ");
    }

    public void show() {
        System.out.println("装扮的" + name);
    }

}

class Tester {
    public static void main(String[] args) {
        Person person = new Person("小菜");
        System.out.println("第一种装扮：");
        person.wearLeatherShoes();
        person.wearSuit();
        person.wearTShirts();
        person.show();
    }
}
